﻿@model Dictionary<string, string>
@{
    string text = Model["Text"];
    string ngModel = Model["Model"];
    string name = Model["Name"];
    string disabled = Model.ContainsKey("Disabled") ? Model["Disabled"] : string.Empty;
}
<label>@text</label>
<div class="form-group">
    <textarea ng-model="@ngModel" name="@name" class="form-control" rows="2" ng-maxlength=250 ng-disabled="@disabled"></textarea>
     <div class="error-container" 
         ng-show="form.@name.$dirty && form.@name.$invalid">
        <small class="error" 
             ng-show="form.@name.$error.maxlength"><p style="color:red"><b>Tối đa 250 ký tự</b></p> 
        </small>
    </div>
</div>